local m = require('utils.vim')
local e = require('utils.editor')

-- zh自定义(解决汉字word选择问题)
m.map("v", "zh", function()
    local v = e.get_visual_selection()
    v = e.double_escape(v)
	local left_keypresses = string.rep("\\<Left>",3)
	local backspace_keypresses = string.rep("\\<backspace>", 5) --remove the '<,'> string
    local k = ":" .. backspace_keypresses .. "%s/" .. v .. "//gI" .. left_keypresses
    e.send_key(k)
end,{desc="show cmd to replace word under cursor with"})

-- EOP
